package entity

type ShareEbike struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	UserId int64 `gorm:"column:user_id;type:BIGINT" json:"user_id"`

	EbikeId int64 `gorm:"column:ebike_id;type:BIGINT" json:"ebike_id"`

	ShareUserId int64 `gorm:"column:share_user_id;type:BIGINT" json:"share_user_id"`

	Phone string `gorm:"column:phone;type:VARCHAR(255)" json:"phone"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Photo string `gorm:"column:photo;type:VARCHAR(255)" json:"photo"`

	ShareTime int64 `gorm:"column:share_time;type:BIGINT" json:"share_time"`

	Status int `gorm:"column:status;type:TINYINT" json:"status"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`

	AcceptedAt int64 `gorm:"column:accepted_at;type:BIGINT" json:"accepted_at"`
}

func (a *ShareEbike) TableName() string {
	return "share_ebikes"
}
